<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="/WEB-INF/jsp/includeCss.jsp" %>
<%@ include file="/WEB-INF/jsp/includeJs.jsp" %>
<%@ include file="/WEB-INF/jsp/includeTaglib.jsp" %>

<div id="jobListDiv">
<table width="100%" border="0" cellpadding="0" cellspacing="5">
  <tr>
    <td valign="top">
      <table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="bottom" class="blueTableBg">&nbsp;配置管理&nbsp;-&nbsp;任务维护</td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="5">
              <tr>
                <td>
                  <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td class="dashTopLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashTop" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashTopRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>

                    <tr>
                      <td class="dashLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td align="center">

                      	<form id="jobListDataForm">
                      		<%@ include file="/WEB-INF/jsp/admin/jobSearch.jsp" %>
                      		<input name="projectId" type="hidden" value="${projectId}" />
                      	</form>
                      	<div id="jobListData" class="pageDiv">

                      	</div>

                      </td>
                      <td class="dashRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>
                    <tr>
                      <td class="dashBottomLeft"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashBottom" width=100%><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                      <td class="dashBottomRight"><img src="<c:url value='/images/spacer.gif' />" width="7" height="7"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</div>
<div id="jobView">

</div>


<script>
	$(document).ready(function(){
		listDefaultPageAjax('jobListData','jobListDataForm','<c:url value="/admin/jobListData.html?projectId=${projectId}" />');
	});


	function invoke(){
		var pWindow=window.dialogArguments;
	    if(pWindow){
	    	if(typeof(pWindow.jobListOnloadCallBack)=='function'){
	    		pWindow.jobListOnloadCallBack(window);
	    	}

	    }
	}

	function viewDetail(id){
		//window.location='<c:url value='/admin/jobView.html' />?jobId='+id;
		$("#jobListDiv").fadeOut();
		$("#jobView").load('<c:url value='/admin/jobView.html' />?jobId='+id);
	}
</script>
